<!DOCTYPE html>
<html>
    <head>
        <style>
            canvas{
                width: 270vh;
                height: 270vh;
            }
            #ck{
                width: 300vh;
                height: 90vh;
                overflow: scroll;
            }
        </style>
        <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    </head>
    <body>
        <div id="ck">
            <canvas width="3000" height="3000"></canvas>
        </div>
        <button onclick="sco()">For Once</button>
        <button onclick="scoI = setInterval('sco()',100);">Start</button>
        <button onclick="clearInterval(scoI);">Stop</button>
    </body>
    <script src="js/main.js"></script>
    <script src="js/Hole.js"></script>
    <script src="js/HallWay.js"></script>
    <script src="js/ClassRoom.js"></script>
    <script>
        /**
        @version 0.5
        @author XSYangtuo
        @License none
        */
        var scoI;
        // var hallwT = HallWay.newHallWay(6,70,1,0,1,testNewClassRoom(4,50),8,0);
        // var holewT = Hole.newHole(8,100,2,0);
        function scoHall(){
            canvas.fillStyle = "white";
            canvas.fillRect(0,0,3000,3000);
            HallWay.hallWayRun(hallwT);
            HallWay.displayHallWay(hallwT,20,20,70,true);
        }
        function scoHole(){
            canvas.fillStyle = "white";
            canvas.fillRect(0,0,3000,3000);
            if(Math.random()>0.6)Hole.joinPeo(holewT,{
            color:"#"+Math.floor(Math.random()*900000)
        })
            Hole.runHole(holewT);
            Hole.displayHole(holewT,20,20,100)
        }
        function sco(){
            // scoHall();
            // scoHole();
            //disPlayOn();
            disPlayFront();
            run();
        }
        structure.init();
        // for(let i =0;i<60;i++){
        //     summon();
        // }
        //HallWay.displayHallWay(hallwT,20,20,90,false);
        
        //setInterval("summon()",100)

    </script>
</html>